package com.gary.jvmStack;

/**
 * @author peng_rui
 * @date 2022/2/21
 */
public class InterviewTest {
    public static void main(String[] args) {
        //常见的 i++ ++i 的区别
        //第一类
        int i1 = 10;
        i1++;

        int i2 = 10;
        ++i2;

        //第二类
        int i3 = 10;
        int i4 = i3++;

        int i5 = 10;
        int i6 = ++i5;

        //第三类
        int i7 = 10;
        i7 = i7++;

        int i8 = 10;
        i8 = ++i8;

        //第四类
        int i9 = 10;
        int i10 = i9++ + ++i9;
    }
}
